package com.gdk.service.impl;

import java.util.Comparator;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Optional;
import java.util.function.Function;
import java.util.stream.Collectors;
import java.util.stream.IntStream;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.gdk.dao.ArticleDao;
import com.gdk.dao.FairDao;
import com.gdk.dao.LoginDao;
import com.gdk.service.ArticleService;
import com.gdk.service.FairService;
import com.gdk.service.LoginService;
import com.gdk.utils.Md5Utils;


/**
 * 会议业务处理
 * */
@Service("FairService")
public class FairServiceImpl implements FairService {
	@Autowired
    private FairDao fairDao;

	@Override
	public List<Map<String, Object>> findAllFair(Map<String,Object> map) {
		return fairDao.findAllFair(map);
	}
	@Override
	public int addFair(Map<String, Object> map) {
		return fairDao.addFair(map);
	}
	@Override
	public int updateFairStatus(Map<String, Object> map) {
		return fairDao.updateFairStatus(map);
	}
	@Override
	public Map<String, Object> findFairDetails(Map<String, Object> map) {
		return fairDao.findFairDetails(map);
	}
	@Override
	public int updateFairDetails(Map<String, Object> map) {
		return fairDao.updateFairDetails(map);
	}
	
	
	@Override
	public int bindFairAndHotel(Map<String, Object> map) {
		return fairDao.bindFairAndHotel(map);
	}
	
	@Override
	public List<Map<String, Object>> findBindFairAndHotel(Map<String, Object> map) {
		return fairDao.findBindFairAndHotel(map);
	}
	
	@Override
	public int updateBindFairAndHotel(Map<String, Object> map) {
		return fairDao.updateBindFairAndHotel(map);
	}
	@Override
	public int bindUserAndFair(Map<String, Object> map) {
		return fairDao.bindUserAndFair(map);
	}
	
	@Override
	public List<Map<String, Object>> selectUserBindFair(Map<String, Object> map) {
		return fairDao.selectUserBindFair(map);
	}
	@Override
	public List<Map<String, Object>> findAllFairAndUser(Map<String, Object> map) {
		return fairDao.findAllFairAndUser(map);
	}
	@Override
	public int updateBindFairAndUser(Map<String, Object> map) {
		return fairDao.updateBindFairAndUser(map);
	}
	@Override
	public int deleteBindFairAndUser(Map<String, Object> map) {
		return fairDao.deleteBindFairAndUser(map);
	}
	@Override
	public int deleteBindFairAndHotel(Map<String, Object> map) {
		return fairDao.deleteBindFairAndHotel(map);
	}
	
	
	@Override
	public int delFair(Map<String, Object> map) {
		return fairDao.delFair(map);
	}
}

